package com.itcjb.springboot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenjiebin
 * RestController = ResponseBody + Controller
 */
@RestController
@RequestMapping("/start")
public class StartController {

    private static final Logger logger = LoggerFactory.getLogger(StartController.class);

    @GetMapping("/springboot")
    public String startSpringboot() {
        logger.info("===StartController.startSpringboot()===");
        return "Welcome to the world of Spring Boot!";
    }
}
